package roman.mosiienko.yalantistestrm.mymodels;

import java.util.ArrayList;

public class Element {

	private long id;

	private String title;

	private String body;

	private String picture;

	public long getId() {
		return id;
	}
	public Element(ArrayList<String> collection) {

		this.title = collection.get(1);
		this.body = collection.get(2);
		this.picture = collection.get(3);
	
	
}
	@Override
	public String toString() {
		return "Element [id=" + id + ", title=" + title + ", picture="
				+ picture + "]";
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}
}
